package com.kanqiubao.kq.fragment.recoding;

import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.kanqiubao.kq.R;
import com.kanqiubao.kq.activity.recoding.WebviewActivity;
import com.kanqiubao.kq.adapter.recoding.RecodingDetailListAdapter;
import com.kanqiubao.kq.fragment.SmartBaseRefreshFragment;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.LinearLayoutManager;

public class RecodingDetailListFragment extends SmartBaseRefreshFragment<String> {
    @Override
    protected int getLayoutId() {
        return R.layout.include_smart_recycler_refresh_layout;
    }

    @Override
    protected void initData() {
        mSuperBaseAdapter.addData(test());
    }

    @Override
    protected void initView() {
        mSuperBaseAdapter = new RecodingDetailListAdapter();
        super.initView();
        mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
    }

    @Override
    public void onItemClick(@NonNull BaseQuickAdapter<?, ?> adapter, @NonNull View view, int position) {
        startMyActivity(WebviewActivity.class);
        super.onItemClick(adapter, view, position);
    }
}
